import json

# tv1=open("test.txt","r")
#
# tv=json.loads(tv1.read())
# print(tv)
# print(type(tv))

# tv1=open("test.txt","r")
# tv=json.load(tv1)

# print(tv)
# print(type(tv))
# tv1.close();

# tv1=open("text.txt","w")
# lt1=["zhangsan","lisi"]
# lt=json.dumps(lt1)
# tv1.write(lt)
# tv1.close()

tv1=open("text.txt", "w")
lt1=["lisi","zhangsan"]
json.dump(lt1,tv1)
tv1.close()